import { createSlice } from "@reduxjs/toolkit";

const appStore = createSlice({

    name: "appStore",

    initialState: {
        collapsed: false
    },

    reducers: {
        setCollapsed(state, action) {
            state.collapsed = action.payload
        }
    }

})

const { setCollapsed } = appStore.actions

export { setCollapsed }

const appReducer = appStore.reducer

export default appReducer
